package com.vhly.classfile.bytecode;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

public class ALOAD
        implements BaseCode {

    private int offset;
    private int index;

    public ALOAD() {
    }

    public String getName() {
        return "ALOAD";
    }

    public int getOp() {
        return 25;
    }

    public int length() {
        return 2;
    }

    public void read(DataInputStream datainputstream)
            throws IOException {
        index = datainputstream.readUnsignedByte();
    }

    public void write(DataOutputStream dataoutputstream)
            throws IOException {
        dataoutputstream.write(25);
        dataoutputstream.write(index);
    }

    public int getOffset() {
        return offset;
    }

    public String getDescrption() {
        return "ALOAD op=25 length=2 (ALOAD index)";
    }

    public void setOffset(int i) {
        offset = i;
    }

    public void setIndex(byte byte0) {
        index = byte0;
    }

    public int getIndex() {
        return index;
    }

    public void setArg(int va) {
        index = va;
    }
}